(a=>{a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(t,e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.addToCart()})}),woodmartThemeModule.addToCart=function(){var t,o=0,d=(woodmartThemeModule.$body.on("added_to_cart",function(t,e){if(e.stop_reload||e.e_manually_triggered)return!1;"popup"===woodmart_settings.add_to_cart_action?(e=['
',"

"+woodmart_settings.added_to_cart+"

",''+woodmart_settings.continue_shopping+"",''+woodmart_settings.view_cart+"","
"].join(""),a.magnificPopup.open({removalDelay:600,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,fixedContentPos:!0,callbacks:{beforeOpen:function(){this.wrap.addClass("wd-popup-slide-from-left")}},items:{src:'",type:"inline"}}),a(".popup-added_to_cart").on("click",".close-popup",function(t){t.preventDefault(),a.magnificPopup.close()}),d()):"widget"===woodmart_settings.add_to_cart_action&&(clearTimeout(o),(0<(e=a(".act-scroll .wd-header-cart .wd-dropdown-cart, .whb-sticked .wd-header-cart .wd-dropdown-cart")).length?e:a(".whb-header .wd-header-cart .wd-dropdown-cart")).addClass("wd-opened"),0<(e=a(".cart-widget-opener")).length&&e.first().trigger("click"),o=setTimeout(function(){a(".wd-dropdown-cart").removeClass("wd-opened")},3500),d()),woodmartThemeModule.$document.trigger("wdActionAfterAddToCart")}),function(){if("yes"!==woodmart_settings.add_to_cart_action_timeout)return!1;clearTimeout(t),t=setTimeout(function(){a(".wd-close-side").trigger("click"),a.magnificPopup.close()},1e3*parseInt(woodmart_settings.add_to_cart_action_timeout_number))})},a(document).ready(function(){woodmartThemeModule.addToCart()})})(jQuery);